package com.mos.action;

import com.mos.base.action.BaseAction;
import com.mos.util.FileUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Package Name: com.mos.action
 * User: grq
 * Date: 2016/4/8
 * Time: 9:29
 * Description:some des here!
 */
@Controller
@RequestMapping("/icon")
public class IconAction extends BaseAction {

    @ResponseBody
    @RequestMapping("/load")
    public List<Map<String,String>> loadIcon(HttpServletRequest request){
        List<Map<String,String>> icons = FileUtil.getSystemIcons(request);
        return icons;
    }
}
